package com.runfast.waimai.dao.mapper;

import com.runfast.common.dao.IMapper;
import com.runfast.waimai.dao.model.RunfastCreditlevel;
import com.runfast.waimai.dao.model.RunfastCreditlevelExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RunfastCreditlevelMapper extends IMapper<RunfastCreditlevel, Integer, RunfastCreditlevelExample> {
    List<RunfastCreditlevel> findAll();

    RunfastCreditlevel get(Integer id);
    void delete(Integer id);

    List<RunfastCreditlevel> findcreditlevelAndAgentid(@Param("endgrade") Integer endgrade, @Param("agentname")String agentname);

    List<RunfastCreditlevel> findEndgrade(@Param("agentid")Integer agentid,@Param("sort")Integer  sort,@Param("page")Integer page,@Param("pagesize")Integer pagesize);
    Integer findEndgradecount(@Param("agentid")Integer  agentid,@Param("sort")Integer  sort);
}